//
//  BaseWebViewController.h
//  BeautyPicture
//
//  Created by 沈振邦 on 15/11/24.
//  Copyright © 2015年 szb. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JavaScriptCore/JavaScriptCore.h>

@protocol baseWebApi <JSExport>

- (void)pushAUiViewController:(NSString *)webName;

- (void)log:(NSString *)str;

- (void)finish;

- (void)setConfig:(NSString *)key :(NSString *)value;

- (NSString *)getConfig:(NSString *)key;

- (void)showCloudPicList;

- (void)showToast:(NSString *)message;

- (NSString *)getUid:(NSString *)uid;

- (void)backToFunction:(NSString *)method :(NSDictionary *)data;

- (void)logObject:(NSDictionary *)obj;

- (void)showMessage:(NSString *)message;

- (void)showSuccess:(NSString *)message;

- (void)showError:(NSString *)message;

- (void)endRefresh;

- (void)pushINT:(int)index;

@end

@interface BaseWebViewController : UIViewController<baseWebApi,UIWebViewDelegate>

@property (nonatomic,strong)JSContext *context;

@property (nonatomic,strong)UIWebView *baseWebView;

@property (nonatomic,copy)NSString *webName;


@end
